package A;

public class ATest2 {
    public static void main(String[] args) {
        String str = "ABCDzw123";
        StringBuilder maxStr = new StringBuilder();
        StringBuilder minStr = new StringBuilder();
        char[] chars = str.toCharArray();
        for (int i = 0; i < chars.length; i++) {
            if(chars[i] >= 'A' && chars[i] <= 'Z'){
                maxStr.append(chars[i]+",");
            }


        }
    }
}
